package com.woniuxy.oldmanapi.cvo;

import com.woniuxy.oldmanapi.entity.Card;
import com.woniuxy.oldmanapi.entity.Medicine;
import com.woniuxy.oldmanapi.entity.Older;
import lombok.Data;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@ToString
public class AddDeliveryVo {
        @Id
        @GeneratedValue(strategy = GenerationType.IDENTITY)
        private Integer id;

        private Card card;
        private int[] medicineId;
        private List<DeliveryDetailVo> deliveryDetailVos;
        @Column(name = "older_id")
        private Integer olderId;

        private String  olderName;
        private Older older;

        @Column(name = "orderNum")
        private String ordernum;
        private  int deliveryId;

        @Column(name = "saleTime")
        private Date saletime;

        @Column(name = "totalPrice")
        private BigDecimal totalprice;

        @Column(name = "cardNum")
        private String cardnum;

        @Column(name = "rechargeMoney")
        private BigDecimal rechargemoney;

        @Column(name = "presentMoney")
        private BigDecimal presentmoney;

        private String desc;

        private Integer state;
    }


